<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <div class="col-md-6">
           <form action="{:url('blog/setmeal/addpost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
           <div class="row">
               <div class="col-md-9">
                   <table class="table table-bordered">
                       <tr>
                           <input type="hidden" id="goods_id" name="goods_id" value="">
                           <th width="100">选择商品<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control" readonly="readonly" type="text" style="width: 250px;" id="proid" name="proid" required value="" placeholder="选择存入的商品"/>
                               <input type="button" value="选择商品" id="select" >
                           </td>
                       </tr>
                       <tr>
                           <th width="100">套餐主题<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control" type="text" style="width: 400px;" name="set_name" required placeholder="套餐主题"/>
                           </td>
                       </tr>
                    <!--   <tr>
                           <th width="100">开始时间<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control js-bootstrap-datetime" type="text" style="width: 250px;" name="set_start" required placeholder="输入折扣开始时间"/>
                           </td>
                       </tr>
                       <tr>
                           <th width="100">结束时间<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control js-bootstrap-datetime" type="text" style="width: 250px;" name="set_end" required placeholder="输入折扣结束时间"/>
                           </td>
                       </tr>-->
                       <tr>
                           <th width="100">原价<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control" type="text" style="width: 200px;" name="set_price" />
                           </td>
                       </tr>
                       <tr>
                           <th width="100">会员价<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control" type="text" style="width: 200px;" name="set_prices" />
                           </td>
                       </tr>
                       <tr>
                           <th width="100">库存<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control" type="text" style="width: 200px;" name="number" />
                           </td>
                       </tr>
                       <tr>
                           <th width="100">店铺<span class="form-required">√</span></th>
                           <td>
                               <select class="form-control" name="shop" id="shop">
                                   <foreach name="shop" item="shop">
                                       <option value="{$shop.re_guid}">{$shop.shop_name}</option>
                                   </foreach>
                               </select>
                           </td>
                       </tr>
                       <tr>
                           <th width="100">状态<span class="form-required">√</span></th>
                           <td>
                           <select class="form-control" id="status" name="status">
                               <option value="1">开启</option>
                               <option value="2">关闭</option>
                           </select>
                           </td>
                       </tr>
                   </table>
               </div>
           </div>
                    <button type="submit" class="btn btn-primary">提交</button>
       </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer/layer.js"></script>
<script type="text/javascript" src="__STATIC__/js/product.js"></script>
</body>
<script>
    $('#select').click(function(){
        layer.open({
            type: 2,
            title: '选择商品',
            shadeClose: true,
            shade: false,
            maxmin: false, //开启最大化最小化按钮
            area: ['100%', '100%'],
            content: "{:url('setmeal/addgoods')}"//视图路径
        })
    })

</script>
</html>